package com.lh.gomoku.clientUI;

public class ChessEvent {
	
	int eventtype;
	String[] eventAttribute;
	
	public static final int EVENTTYPE_WAIT = 1;
	public static final int EVENTTYPE_DRAW = 2;
	public static final int EVENTTYPE_UNDERPIECE  =3;
	public static final int EVENTTYPE_WIN = 4;
	public static final int EVENTTYPE_LOSE = 5;
	public static final int EVENTTYPE_ERROR = 0;
	//public static final int EVENTTYPE_GAMELIST = 6;
	public static final int EVENTTYPE_WAITANDDRAW = 7;
	public static final int EVENTTYPE_RETRY = 8; 
	public static final int EVENTTYPE_JOININPLAYER = 9;
	public static final int EVENTTYPE_PLAYERLIST = 10;
	
	public static final int EVENTTYPE_SUEPEACE = 11;
	public static final int EVENTTYPE_SUEPEACEACK =12;
	
	
	public static final ChessEvent waitEvent = new ChessEvent(EVENTTYPE_WAIT,null);
	
	public static final ChessEvent underPieceEvent = new ChessEvent(EVENTTYPE_UNDERPIECE,null);
	public ChessEvent(int type,String[] eventA){
		this.eventtype = type;
		this.eventAttribute = eventA;
	}


	public int getEventtype() {
		return eventtype;
	}


	public void setEventtype(int eventtype) {
		this.eventtype = eventtype;
	}


	public String[] getEventAttribute() {
		return eventAttribute;
	}


	public void setEventAttribute(String[] eventAttribute) {
		this.eventAttribute = eventAttribute;
	}
	
}
